package com.mashibing.dp.strategy.v1;

import com.mashibing.dp.strategy.model.Cat;
import com.mashibing.dp.strategy.model.Dog;

import java.util.Arrays;

public class Main1 {
    public static void main(String[] args) {

        Cat[] cats={new Cat(3,3),new Cat(2,2),new Cat(1,1)};
        Dog[] dogs={new Dog(3),new Dog(2),new Dog(1)};
        Sorter1 sorter1=new Sorter1();
        sorter1.sort(cats);
        sorter1.sort(dogs);
        System.out.println(Arrays.toString(cats));
        System.out.println(Arrays.toString(dogs));

    }
}
